@charset "utf-8";

@font-face {
    font-family: "hm";
    src: url("https://cdn.jsdelivr.net/gh/xiaoyanu/file-test@2022.9.21/more/HarmonyOS_Sans_SC_Medium.subset.woff2") format("truetype");
    /* 兼容Safari */
}

@keyframes fade-small-large {
    from {
        opacity: 0;
        transform: scale(.5, .5)
    }

    to {
        opacity: 1;
        transform: scale(1, 1)
    }
}

@-webkit-keyframes fade-small-large {
    from {
        opacity: 0;
        transform: scale(.5, .5)
    }

    to {
        opacity: 1;
        transform: scale(1, 1)
    }
}

@keyframes fade-in-top {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@-webkit-keyframes fade-in-top {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* 美化滚动条 */
::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 4px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 4px;
    scrollbar-arrow-color: red;
}

::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.4);
    scrollbar-arrow-color: red;
}

::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 5px rgba(236, 240, 243, 1);
    border-radius: 0;
    background: rgba(236, 240, 243, 1);
}

* {
    font-family: "hm";
    margin: 0;
    padding: 0;
    user-select: none;
}

a {
    text-decoration: none;
    color: #61677C;
}

body {
    background-color: #ecf0f3;
}

/* 顶部标题栏 */
#head {
    position: relative;
    height: 64px;
    line-height: 64px;
    color: #61677C;
    box-shadow: -5px -5px 20px #fff, 5px 5px 20px #d1d9e6;
    background-color: #ecf0f3;
    text-shadow: 1px 1px 0 #FFF;
}

#head span {
    font-weight: 800;
}

#head #logo {
    vertical-align: middle;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-left: 20px;
    margin-top: -10px;
}

#head img {
    display: inline-block;
}

#head #title {
    font-size: 24px;
}

#head #tj {
    vertical-align: middle;
    height: 60px;
    margin-top: -10px;
    margin-left: 50px;
}

#head-right {
    height: 64px;
    width: 150px;
    float: right;
}

#head #wt {
    display: inline-block;
    border-radius: 8px;
    background-color: #ecf0f3;
    box-shadow: -5px -5px 20px #FFF, 5px 5px 20px #d1d9e6;
    transition: all 0.2s ease-in-out;
    width: 100px;
    text-align: center;
    height: 30px;
    line-height: 30px;
    font-weight: 600;
}

#head #wt:hover {
    box-shadow: -2px -2px 5px #FFF, 2px 2px 5px #d1d9e6;
}

#head #wt:active {
    box-shadow: inset 1px 1px 2px #d1d9e6, inset -1px -1px 2px #FFF;
}

/* banner图 */
#banner {
    height: 400px;
    background-image: url(Top_Picture.gif);
    background-position-x: center;
    background-position-y: center;
    background-size: cover;
}

#banner h1 {
    line-height: 400px;
    color: #FFF;
    text-align: center;
    text-shadow: rgb(0 0 0 / 50%) 0 3px 5px;
}

/* 主要部分 */
#main {
    background-color: #ecf0f3;
}

#center {
    width: 1080px;
    margin: 0 auto;
    color: #61677C;
}

.apibox {
    display: inline-block;
    margin: 15px;
    border-radius: 8px;
    background-color: #ecf0f3;
    box-shadow: -5px -5px 20px #FFF, 5px 5px 20px #d1d9e6;
    transition: all 0.2s ease-in-out;
    width: 325px;
    height: 160px;
    font-weight: 600;
}

.apibox:hover {
    box-shadow: -2px -2px 5px #FFF, 2px 2px 5px #d1d9e6;
}

.zt {
    color: #FFF;
    padding: 4px;
    text-align: center;
    border-radius: 6px;
    float: right;
    font-size: 12px;
    font-weight: 400;
    position: relative;
    right: 20px;
    top: 20px;
}

.title {
    width: 285px;
    height: 32px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
    font-size: 24px;
    word-break: break-all;
    overflow: hidden;
}

.text {
    width: 285px;
    height: 74px;
    margin: 0 auto;
    margin-top: 10px;
    overflow: hidden;
    word-break: break-all;
}

.url {
    border: 0;
    outline: 0;
    float: right;
    position: relative;
    bottom: 36px;
    right: 20px;
    border-radius: 8px;
    background-color: #ecf0f3;
    box-shadow: -5px -5px 20px #FFF, 5px 5px 20px #d1d9e6;
    transition: all 0.2s ease-in-out;
    height: 38px;
    line-height: 38px;
    width: 80px;
    text-align: center;
}

.url:hover {
    box-shadow: -2px -2px 5px #FFF, 2px 2px 5px #d1d9e6;
}

.url:active {
    box-shadow: inset 1px 1px 2px #d1d9e6, inset -1px -1px 2px #FFF;
}

/* 底部版权声名 */
#footer {
    margin-top: 15px;
    background-color: #ecf0f3;
    border-top: solid 1px #d1d9e6;
    width: auto;
}

#footer p {
    margin-top: 20px;
    padding-bottom: 20px;
    color: #61677C;
    text-align: center;
}

/* 返回 */
#xf {
    position: fixed;
    right: 0;
    bottom: 0;
    height: 100px;
    width: 50px;
}

#xf a {
    display: block;
    height: 40px;
    width: 40px;
    border-radius: 8px;
    background-color: #ecf0f3;
    box-shadow: -5px -5px 20px #FFF, 5px 5px 20px #d1d9e6;
    transition: all 0.2s ease-in-out;
    margin-bottom: 10px;
}

#xf a:hover {
    box-shadow: -2px -2px 5px #FFF, 2px 2px 5px #d1d9e6;
}

#xf a:active {
    box-shadow: inset 1px 1px 2px #d1d9e6, inset -1px -1px 2px #FFF;
}

#xf a svg {
    display: block;
    margin: 0 auto;
    padding-top: 5px;
    width: 28px;
    height: 28px;
}

/* 搜索框 */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#main-ss {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    width: 300px;
    height: 180px;
    border-radius: 15px;
    background-color: #ecf0f3;
    box-shadow: -2px -2px 3px #FFF, 2px 2px 3px #d1d9e6;
    opacity: 0;
    transform: translate(-50%, -55%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #61677c;
}

#main-ss #ss {
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    border: 0;
    outline: 0;
    border-radius: 8px;
    padding: 8px;
    background-color: #ecf0f3;
    text-shadow: 1px 1px 0 #FFF;
    box-shadow: inset 2px 2px 5px #d1d9e6, inset -5px -5px 10px #FFF;
    color: #61677c;
}

#main-ss #ss::placeholder {
    color: #61677c;
}

#main-ss #g-ss {
    /* margin-left: 130px; */
    margin-top: 30px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background-color: #ecf0f3;
    box-shadow: -5px -5px 20px #FFF, 5px 5px 20px #d1d9e6;
    transition: all 0.2s ease-in-out;
    color: #61677c;
    font-weight: bold;
}

#main-ss #g-ss:hover {
    box-shadow: -2px -2px 5px #FFF, 2px 2px 5px #d1d9e6;
}

/* ss.php页面的修饰 */
#ss-main {
    margin: 20px;
}

#ss-main #ss {
    margin-top: 10px;
    width: 80%;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    border: 0;
    outline: 0;
    border-radius: 8px;
    padding: 8px;
    background-color: #ecf0f3;
    text-shadow: 1px 1px 0 #FFF;
    box-shadow: inset 2px 2px 5px #d1d9e6, inset -5px -5px 10px #FFF;
    color: #61677c;
    font-size: 20px;
}

#ss-main #ss::placeholder {
    color: #61677c;
}

#ss-main #g-ss {
    /* margin-left: 130px; */
    margin-top: 30px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background-color: #ecf0f3;
    box-shadow: -5px -5px 20px #FFF, 5px 5px 20px #d1d9e6;
    transition: all 0.2s ease-in-out;
    color: #61677c;
    font-weight: bold;
    font-size: 20px;
}

#ss-main #g-ss:hover {
    box-shadow: -2px -2px 5px #FFF, 2px 2px 5px #d1d9e6;
}

/* 搜索框显示动画用 */
.show {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
}

/* - 漂浮提示 */
[ks-tag] {
    position: relative
}

[ks-tag]:before,
[ks-tag]:after {
    position: absolute;
    pointer-events: none;
}

/* -- 小箭头 */
[ks-tag]:before {
    width: 0;
    height: 0;
    opacity: 0;
    content: '';
    position: absolute;
    transition: opacity .3s;
    border: .5rem solid transparent;
}

[ks-tag~=top]:before {
    bottom: 100%;
    border-top-color: rgba(0, 0, 0, .7);
}

[ks-tag~=bottom]:before {
    top: 100%;
    border-bottom-color: rgba(0, 0, 0, .7);
}

[ks-tag~=top]:before,
[ks-tag~=bottom]:before {
    left: 50%;
    transform: translateX(-50%);
}

[ks-tag=left]:before {
    right: 100%;
    border-left-color: rgba(0, 0, 0, .7);
}

[ks-tag=right]:before {
    left: 100%;
    border-right-color: rgba(0, 0, 0, .7);
}

[ks-tag=left]:before,
[ks-tag=right]:before {
    top: 50%;
    transform: translateY(-50%);
}

/* -- 文字 */
[ks-tag~=top]:after {
    bottom: 100%;
    margin-bottom: 1rem;
}

[ks-tag~=bottom]:after {
    top: 100%;
    margin-top: 1rem;
}

[ks-tag=top]:after,
[ks-tag=bottom]:after {
    left: 50%;
    transform: translateX(-50%);
}

[ks-tag=left]:after {
    right: 100%;
    margin-right: 1rem;
}

[ks-tag=right]:after {
    left: 100%;
    margin-left: 1rem;
}

[ks-tag=left]:after,
[ks-tag=right]:after {
    top: 50%;
    transform: translateY(-50%);
}

/* -- 组合对齐方式 */
[ks-tag~=left][ks-tag~=top]:after,
[ks-tag~=left][ks-tag~=bottom]:after {
    right: 0;
    min-width: 4em;
}

[ks-tag~=right][ks-tag~=top]:after,
[ks-tag~=right][ks-tag~=bottom]:after {
    left: 0;
    min-width: 4em;
}

[ks-text]:hover:before,
[ks-text]:hover:after {
    opacity: 1
}

[ks-text]:after {
    opacity: 0;
    z-index: 1;
    color: #fff;
    font-size: .85rem;
    white-space: nowrap;
    border-radius: .5rem;
    padding: .25rem .5rem;
    content: attr(ks-text);
    transition: opacity .3s;
    background: rgba(0, 0, 0, .7);
}

/* 弹窗 */
notice {
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1em;
    position: fixed;
    user-select: none;
    pointer-events: none
}

.ks-notice {
    color: #fff;
    display: table;
    background: #FF5252;
    border-radius: 3em;
    pointer-events: auto;
    margin: 0 auto 1em auto;
    box-shadow: 0 5px 5px -2px rgba(0, 0, 0, .2);
    animation: fade-small-large .3s both;
    -webkit-animation: fade-small-large .3s both
}

.ks-notice.remove {
    animation: fade-in-top .3s both reverse;
    -webkit-animation: fade-in-top .3s both reverse
}

.ks-notice>span {
    padding: .5em 1em;
    display: table-cell;
    vertical-align: middle
}

.ks-notice .close {
    cursor: pointer;
    border-radius: 0 1em 1em 0;
    transition: background .3s
}

.ks-notice .close:hover {
    background: rgba(0, 0, 0, .1)
}

.ks-notice .close:after {
    content: '×';
    font: inherit
}

/* 适配手机 */
@media only screen and (max-width: 639px) {
    #banner {
        height: 150px;
    }

    #head #logo {
        display: none;
    }

    #banner h1 {
        line-height: 150px;
    }

    #head #title {
        display: none;
    }

    #head #tj {
        height: 40px;
    }

    #center {
        width: 85%;
    }

    .apibox {
        width: 100%;
        margin: 0;
        margin-top: 20px;
    }

    .url {
        bottom: 32px;
    }

    .text {
        margin: 0;
        margin-top: 10px;
        margin-left: 20px;
        width: 88%;
    }
}
